export function checkPhoneValidator(rule, value, callback) {
    if(!value) {
        return callback(new Error("phone can not be empty"));
    } else {
        const reg = /^1[3|4|5|7|8][0-9]\d{8}$/;
        if(reg.test(value)) {
            callback();
        } else {
            return callback(new Error("please input correct phone"));
        }
    }
}